#coding=utf-8
from SimpleXMLRPCServer import SimpleXMLRPCServer   
 
def saveOrder():
    pass

def queryOrder():
    pass

def startRpcServer():

    server = SimpleXMLRPCServer(("localhost", 5555))   

    server.register_multicall_functions()   
    server.register_function(saveOrder, 'saveOrder')
    server.register_function(queryOrder, 'queryOrder')

    server.serve_forever()